﻿@model SEMS.Models.Evaluation_entry

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Admin/Shared/_Layout.cshtml";
}

@Html.ValidationSummary(true,"创建失败!")

<script src="../../../Scripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="../../../Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>

<h2>添加新项目</h2>
@using (Html.BeginForm())
{
    <fieldset>
        <legend>添加新的测评项目</legend>
        <!--学年-->
        <div class="editor-label">
            @Html.LabelFor(m=>m.entry_school_year)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m=>m.entry_school_year)
            @Html.ValidationMessageFor(m=>m.entry_school_year)
        </div>
        <!--学期-->
        <div class="editor-label">
            @Html.LabelFor(m=>m.entry_semester)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(m=>m.entry_semester,new List<SelectListItem>()
            {
                {new SelectListItem(){Text="春",Value="春"}},
                {new SelectListItem(){Text="秋",Value="秋"}}
            })
            @Html.ValidationMessageFor(m=>m.entry_semester)
        </div>
        <!--描述-->
        <div class="editor-label">
            @Html.LabelFor(m=>m.entry_description)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m=>m.entry_description)
            @Html.ValidationMessageFor(m=>m.entry_description)
        </div>
        <!--开始时间-->
        <div class="editor-label">
            @Html.LabelFor(m=>m.entry_date)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m=>m.entry_date)
            @Html.ValidationMessageFor(m=>m.entry_date)
        </div>
        <!--所属模块-->
        <div class="editor-label">
            @Html.LabelFor(m=>m.module_id)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(m=>m.module_id,(SelectList)ViewBag.List)
            @Html.ValidationMessageFor(m=>m.module_id)
        </div>

        <input type="submit" value="确认添加" />
    </fieldset>
}